package com.example.blog.service;

import com.example.blog.pojo.Type;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TypeService {
    List<Type> findAll();
    Type saveType(Type type)throws Exception;
    PageInfo<Type> listType(Integer page, Integer num);
    PageInfo<Type> listType(Integer page, Integer num, Long id);
    void deleteType(Long id);
    Type toEdit(Integer id);
    void edit(Type type) throws Exception;
}
